package com.hai.bean;

import java.util.List;

import android.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class MyAdapter extends BaseAdapter{

	private List<Item> mList;
	private LayoutInflater mInflater;//布局装载器对象
	
	public MyAdapter(Context context,List<Item> list){
		mList=list;
		mInflater =LayoutInflater.from(context);//context:当前要使用的Adapter的界面对象
	}
	
	@Override
	public int getCount() {
		return mList.size();
	}

	@Override
	public Object getItem(int position) {
		return mList.get(position);
	}

	@Override
	public long getItemId(int position) {
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		//nView view = mInflater.inflate(R.layout.item, null);
		return null;
	}

}
